package com.nimitz.common.constant;

/**
 * @Date 2023-07-09-20:00
 * @Description 订单通用常量
 */
public class OrderConstants {

    /**
     * 订单类型-购买
     */
    public static final Integer ORDER_TYPE_PURCHASE = 1;

    /**
     * 订单类型-核销
     */
    public static final Integer ORDER_TYPE_WRITEOFF = 2;

    public static final String SYNC_STATUS_FALSE = "0";

    public static final String SYNC_STATUS_TRUE = "1";

    // 滴灌通上报类型
    public static enum NumaType {

        // 收入数据上报
        INCOME(1, "收入数据上报 "),
        // 收入数据上报
        SETTLE(2, "资金清分对账数据上报"),
        // 收入数据上报
        MONTHSETTLE(3, "小微商户清分月度对账单上报");

        private Integer id;
        private String value;

        private NumaType(Integer id, String value) {
            this.id = id;
            this.value = value;
        }

        // id
        public Integer id() {
            return id;
        }

        // 值
        public String value() {
            return value;
        }
    }

    //不可分收入
    public static enum IncomeNotCategory {

        // 充值VIP卡
        RECHARGE_VIP("MJ_Not_Income_VIP", "充值VIP卡"),
        // 购买单项
        BUY_SINGLE_PROJECT("MJ_Not_Income_Single_Project", "购买单项"),
        // 购买套餐卡
        BUY_PACKAGECARD("MJ_Not_Income_Package_Card", "购买套餐卡"),
        // 购买产品
        BUY_PRODUCT_RIGHT("MJ_Not_Income_Product", "购买产品"),
        // 购买兑换券
        BUY_EXCHANGE_COUPON("MJ_Not_Income_Voucher", "购买兑换券"),
        // 退款
        REFUND("MJ_Not_Income_Refund", "退款"),
        // 跨店充值
        CROSS_STORE_RECHARGE("cross_store_recharge", "跨店充值");
        private String code;
        private String value;

        private IncomeNotCategory(String code, String value) {
            this.code = code;
            this.value = value;
        }

        // code
        public String code() {
            return code;
        }

        // 值
        public String value() {
            return value;
        }
    }
}
